package com.example.myapplication.ui.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.module.LoadMoreModule
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.example.myapplication.R
import com.example.myapplication.bean.collect.WebsiteCollectBean

/**
 *网站收藏的adapter
 *
 * @author : Kun
 * @date : 2021/6/8
 * @time : 10:14
 */
class WebsiteCollectAdapter(layoutResId: Int, mList: ArrayList<WebsiteCollectBean>?) :
    BaseQuickAdapter<WebsiteCollectBean, BaseViewHolder>(layoutResId, mList),
    LoadMoreModule {

    override fun convert(holder: BaseViewHolder, item: WebsiteCollectBean) {
        holder.setText(R.id.tv_title, item.name)
            .setText(R.id.tv_url, item.link)
    }
}